<template>
  <div class="article-main">
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <el-button type="primary" size="default">新增</el-button>
      </div>
      <!-- :data="tableData"数据源 -->
      <el-table :data="articleList" style="width: 100%" border>
        <el-table-column prop="date" align="center" label="日期" width="180" />
        <el-table-column prop="name" align="center" label="姓名" width="180" />
        <el-table-column prop="address" align="center" label="地址" />
      </el-table>
    </el-card>
  </div>
</template>

<script>
import { findArticles } from '@/api/article/article'
export default {
  name: 'Article',
  mixins: [],

  data() {
    return {
      articleList: []
    }
  },
  methods: {
    getArticleList() {
      findArticles().then((res) => {
        console.log(res)
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.article-main {
  margin: 30px;
}
</style>
